# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-sportydatagen
pkgver=0.2.2
pkgrel=2
pkgdesc="Generator of Endurance Sports Activity Collections (datasets)"
url="https://gitlab.com/firefly-cpp/sportydatagen"
arch="noarch !ppc64le !s390x !riscv64" # py3-sport-activities-features
license="MIT"
depends="python3 py3-niapy py3-numpy py3-pandas py3-scikit-learn py3-sport-activities-features"
makedepends="py3-poetry-core py3-gpep517"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://gitlab.com/firefly-cpp/sportydatagen/-/archive/$pkgver/sportydatagen-$pkgver.tar.gz"
builddir="$srcdir/sportydatagen-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

# problems with test collection | missing deps; use smoke tests now
check() {
	PYTHONPATH=build/lib python3 -c "from sportydatagen import *"
}


package() {
	python3 -m installer -d "$pkgdir" \
		.dist/sportydatagen-$pkgver-py3-none-any.whl
}

sha512sums="
8ae9801bbcec2cab63b1e8600f28c0da74008cedbb38b98ba8d59b636265b0f93ab13514ffd778cd15abec71731e1aa9fd30aa88f5be3e513c8c4059a691291d  py3-sportydatagen-0.2.2.tar.gz
"
